package Test1;

public class ObjectDemo2 {
    public static void main(String[] args) {
        Student s1 = new Student("zhangsan",11);
        Student s2 = new Student("zhangsan",11);
        //未重写则比较对象的地址值，重写了比较对象的属性值
        System.out.println(s1 .equals(s2));
    }
}
